<?php

$param_list = array(
    "update_package" => true,
    "update_url" => "http://192.168.0.103:81/dev/",
	"notice_query_url" => "http://192.168.0.103:81/api/notice.php",
    "report_url" => "",
    "upload_url" => "http://192.168.0.103:81/sound/mediarecord.php/",
    "gm_report_url" => "",
	"gift_fetch_url" => "http://192.168.0.103:81/gameback/cdkey.php",
    "qq_gift_fetch_url" => "",
    "qq_gift_query_url" => "",
	"chat_report_url" => "http://192.168.0.103:81/gameback/chatlog.php",
    "switch_list" => array(
        "audit_version" => false,
        "log_print" => true,
        "error_screen" => true,
        "testin_report" => true,
        "countly_report" => true,
        "open_chongzhi" => true,
        "open_gm" => true,
		"wechat_gift" => true,
		"qqvip_gift" => true,
        "update_assets" => true,
        "active_code" => true,
        "qqvip_gift" => true,
    ),
);



$server_info = array(
    "last_server" => 2,
    "server_time" => time(),
    "server_list" => array(
        array('id' => 1, 'name' => "Www.BL20166.Com", 'ip' => "192.168.0.103", 'port' => 13006, 'flag' => 1, 'avatar' => "r1", 'role_name' => "xxx", 'role_level' => 10, 'open_time' => 1472463707, 'ahead_time' => 5,),
		//array('id' => 2, 'name' => "有分享", 'ip' => "192.168.1.111", 'port' => 13007, 'flag' => 1, 'avatar' => "r1", 'role_name' => "xxx", 'role_level' => 10, 'open_time' => 1472463707, 'ahead_time' => 5,),
	),
);

$version_info = array(
    "package_info" => array(
        "version" => 100,
        "name" => "",
        "desc" => "",
        "url" => "",
        "size" => 76338608,
        "md5" => "39627a68d9e152b0b5cac02ee471bb06",
		"msg" => "版本过低，请下载安装最新安装包",
    ),
);

$version_info["assets_info"] = json_decode(file_get_contents("dev/version.txt"));
$version_info["update_data"] = base64_encode(file_get_contents("dev/update.lua"));

$init_info = array(
    "param_list" => $param_list,
    "server_info" => $server_info,
    "version_info" => $version_info,
);

echo json_encode($init_info);
